import {promiseRequest} from "./index";
import authorization from "./authorization";

const api = {
  getRegisteredActivities: async (page, size) => {
    const token = await authorization.updateLoginStatus();
    return (await promiseRequest(`/me/registered?page=${page}&size=${size}`, "GET", {
      header: {
        Authorization: `Bearer ${token}`
      }
    }))["data"]
  }
}
export default api;
